from django.db import models
class TeacherInfo(models.Model):
    """
    教师表
    """
    TeacherID = models.AutoField(primary_key=True)
    UserID = models.IntegerField(help_text="用户ID")
    Name = models.CharField(max_length=50, help_text="姓名")
    JobNumber = models.CharField(max_length=20, help_text="工号")
    Gender = models.CharField(max_length=10, help_text="性别")
    Age = models.IntegerField(help_text="年龄")
    Title = models.CharField(max_length=50, blank=True, null=True, help_text="职称")

    class Meta:
        verbose_name = "教师信息"
        verbose_name_plural = "教师信息"
class TeachingInfo(models.Model):
    """
    任课表
    """
    ID = models.AutoField(primary_key=True)
    TeacherID = models.IntegerField(help_text="教师ID")
    ClassID = models.IntegerField(help_text="班级ID")

    class Meta:
        verbose_name = "任课信息"
        verbose_name_plural = "任课信息"